﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;

public partial class Admin_AdminViewInforInterviewer : System.Web.UI.Page
{
    EmployeeMethord EM = new EmployeeMethord();
    string IntervewerID = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            IntervewerID = Request.QueryString["ID"].ToString();
            LoadData();
        }
        catch (Exception ex)
        {
        }
    }
    private void LoadData()
    {
        SqlDataReader dr = EM.ReturnInterviewerInforFollowID(IntervewerID);
        while (dr.Read())
        {
            txtInterViewerID.Text = dr.GetString(0);
            txtFullName.Text = dr.GetString(2);
            txtAddress.Text = dr.GetString(3);
            txtPhone.Text = dr.GetString(4);
            txtBirthOfDate.Text = dr.GetDateTime(5).ToShortDateString();
            txtEmailID.Text = dr.GetString(6);
            LinkButton1.PostBackUrl = "ResetPassword.aspx?ID=" + dr.GetString(0);
        }
        EM.connClose();
    }
}